//
// Created by lfm on 25-4-7.
//
#ifndef LOCATION_H
#define LOCATION_H

#include <cmath>
using namespace std;

class Location
{
public:
    Location(double x_val, double y_val);
    double Getx() ;
    double Gety() ;
    double distance(Location other) ;
    friend double distance(Location &a, Location& b);//不是类内的函数，所以它无法访问私有

private:
    double x, y;
};

#endif


